package com.ssy.lingxi.after.sale.model.vo.request;

import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 手工发货VO
 * @author 伍将
 * @date 2020/12/4
 * @version 2.0.0
 */
@Getter
@Setter
public class ReturnManualGoodsVO implements Serializable {

    private static final long serialVersionUID = -503303610625042045L;
    /**
     * 退货id
     */
    @NotNull(message = "退货id要大于0")
    @Positive(message = "退货id要大于0")
    private Long returnId;

    /**
     * 发货地址
     */
    @NotBlank(message = "发货地址不能为空")
    private String deliveryAddress;

    /**
     * 发货时间
     */
    @NotNull(message = "发货时间不能为空")
    private Long deliveryTime;

    /**
     * 物流单号
     */
    private String logisticsOrderNo;

    /**
     * 物流公司
     */
    private String logisticsName;
    /**
     * 退货商品数量
     */
    @Valid
    @Size(min = 1,message = "退货商品信息必填")
    private List<ReturnManualGoodsProductVO> productList;
}
